cmake_minimum_required (VERSION 2.6) 
find_package (Threads)
add_executable (raceconditions main.c)
add_executable (raceconditions-mutex main-mutex.cc)
target_link_libraries (raceconditions ${CMAKE_THREAD_LIBS_INIT})
target_link_libraries (raceconditions-mutex ${CMAKE_THREAD_LIBS_INIT})

